
#ifndef _IMCommon_

#define _IMCommon_

#import <MLKit.h>
#import <MLLabel.h>
#import <MLLinkLabel.h>

#import "IMUser.h"
#import "IMConversation.h"
#import "IMMessage.h"
#import "IMTextMessage.h"
#import "IMTextDraftMessage.h"
#import "IMAudioMessage.h"
#import "IMImageMessage.h"
#import "IMCustomMessage.h"

#import "IMConfigManager.h"
#import "IMUserManager.h"
#import "IMConversationManager.h"
#import "IMManager.h"
#import "LeanIMManager.h"

#define IMIMG_BUNDLE_NAME (IMCONFIGM.imageBundleName)
#define IMIMG(o) [UIImage imageNamed:[IMIMG_BUNDLE_NAME stringByAppendingPathComponent:(o)]]
#define IM_AvatarImageBackgroundColor [UIColor colorWithWhite:0.829 alpha:1.000]
#define IM_RED_TEXT_COLOR ([UIColor colorWithRed:0.796 green:0.000 blue:0.000 alpha:1.000])
#define IM_PICTURE_MAX_FILE_SIZE 100*1024

//每条消息最多140个字。多的就分批发送
#define IM_TextMessageMaxContentLength 140

#define IMISME(o) [IMCM.currentClientId isEqualToString:(o)]

#endif /* _IMCommon_ */